public class Goleste12 extends Operator {
	public Cana execute(Cana cc) {
		Cana c=cc;
		int cantitateCeTrebuieTransferata=4- c.getY();
		int cantitateTransferata;
		if(cantitateCeTrebuieTransferata <c.getX())
			cantitateTransferata= cantitateCeTrebuieTransferata;
		else
			cantitateTransferata=c.getX();
		c.setX(c.getX()-cantitateTransferata);
		c.setY(c.getY()+cantitateTransferata);
		return c;
	}
	public boolean valabil(Cana c){
		boolean r=false;
		if((c.getX()>0)&& (c.getX()<=3)&& (c.getY()<4))
			r=true;
		return r;
	}
}